<tr>
    <td>
        <?php echo $role; ?>
    </td>
    <?php foreach($rights as $right): ?>
    <td><?php echo $right ? '+' : '-' ?> </td>
    <?php endforeach; ?>
</tr>